package com.bao.interkont.server.impl;

import com.bao.interkont.mapper.LoginMapper;
import com.bao.interkont.pojo.User;
import com.bao.interkont.server.LoginServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author bao*
 * @version 1.0
 */
@Component
public class LoginServerImpl implements LoginServer {
    @Autowired
    private LoginMapper loginMapper;

    @Override
    public boolean login(User user) {
        User user1 = loginMapper.login(user);
        if(user1 == null) {
            return false;
        }else
            return true;
    }
}
